extends layout

block content
    .container-fluid
        .row-fluid
            .span12
                .page-header
                    h1 聊天窗口测试 #{title}
                        small demo
                blockquote
                    p 简单的聊天窗口
                    small Welcome to #{locals.user}
                        cite open
                .row-fluid
                    .span4
                        fieldset(ng-controller='formCtrl')
                            div(ng-hide='showName')
                                .control-group
                                    label.control-label(for='input01') name
                                    .controls
                                        input.input-xlarge(type='text',placeholder='输入name',ng-model='nickname')
                                        p.help-block
                                .control-group
                                    label.control-label
                                    .controls
                                        button.btn.btn-info(ng-click='submitName()') submit
                            .control-group
                                label.control-label message
                                .controls
                                    .textarea
                                        textarea(ng-model='theMsg')
                            .control-group
                                label.control-label
                                .controls
                                    button.btn.btn-warning(ng-click='submitMsg()') send
                    .span8(ng-controller='socketCtrl')
                        dl(ng-repeat='member in msgList track by $index')
                            dt {{member.nick}}
                            dd {{member.message}}
  include footer 

     

  
